package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 使用单独的Controller解决首页问题
 */
@Controller
public class IndexController {

    @RequestMapping(value = {"/", "/index", "/page/index"}, method = RequestMethod.GET)
    public String index() {
        return "index";
    }

}
